// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.unit.math;

import com.dustedpixels.jasmin.unit.Unit;

/**
 * Counts number of 1 bits.
 * 
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class BitCounter32 implements Unit {

  // (input) input
  public int IN;
  
  // (output) number of 1's
  public int OUT;

  public void updateEndPoints() {
    OUT = Integer.bitCount(IN);
  }
}
